package com.matt.repository;

import com.matt.domain.TeachingTempleteDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Describle This Class Is
 * @Author ZengMin
 * @Date 2018/12/19 15:18
 * @Company Matt
 */
public interface TeachingTempleteDetailRepository extends JpaRepository<TeachingTempleteDetail,String> {

    List<TeachingTempleteDetail> findByTempleteIdOrderByTypeAscSortAsc(String templeteId);

    List<TeachingTempleteDetail> findByParentIdInOrderByTypeAscSortAsc(List<String> ids);

    List<TeachingTempleteDetail> findByTempleteIdAndTypeOrderBySortAsc(String templeteId,Integer type);
}
